package app;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ImageButton;

import menhoo.com.i8officelibrary.R;

import custom.ScaleDocImageActivity;

/**
 * Created by yanglei on 16/1/3.
 */
public class ScaleDocImage extends ScaleDocImageActivity {
    Button menu_btn_info;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        getRightCustom().addView(getLayoutInflater().inflate(R.layout.menu_info,null));

        menu_btn_info =(Button)findViewById(R.id.menu_btn_info);
        menu_btn_info.setText("详情");

        menu_btn_info.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent it = new Intent(ScaleDocImage.this, PreviewFileInfo.class);// 创建Intent对象
                //imgInfo
                it.putExtra("imageInfo", getImageInfo());
                //fileInfo
                it.putExtra("fileInfo", getFileInfo());

                startActivity(it);
                onBackPressed();
            }
        });
    }
}
